package com.lingx.web.api.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.lingx.service.ModelService;
import com.lingx.web.api.IApi;
@Component
public class Api9022 extends AbstractDevApi implements IApi{
	@Resource
	private ModelService modelService;
	@Override
	public int getApiCode() {
		return 9022;
	}
	@Override
	public String getApiName() {
		return "复制";
	}
	@Override
	public Map<String, Object> api(Map<String, Object> params) {
		Map<String,Object> ret=IApi.getRetMap(1, "操作成功");
		String ecode=IApi.getParamString(params, "ecode", "");
		String ids=IApi.getParamString(params, "ids", "");
		this.modelService.copyEntity(ecode, ids);
		return ret;
	}

	public boolean isLog() {
		return false;
	}
}
